package com.simpletour.qa.gateway.rpc;

import com.simpletour.qa.common.entity.Authority;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
*
* @author zhaohw
* @date 2018/6/26 15:13
*/
@FeignClient(serviceId = "qa-user",path = "/rpc/authority")
public interface IAuthorityService {

    /**
     * 获取角色的所有权限信息
     * @param roleIds
     * @return
     */
    @RequestMapping(value = "/role",method = RequestMethod.GET)
    Set<Authority> findAuthorityByRoleIds(@RequestParam(name = "roleIds") String[] roleIds);
}
